﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.OpenType
{
    /// <summary>
    /// 
    /// </summary>
    public struct Card8
    {
        private byte Origin;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public Card8(byte data)
        {
            Origin = data;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToString() => Origin.ToString();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="card"></param>
        public static implicit operator byte (Card8 card) => card.Origin;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="b"></param>
        public static implicit operator Card8 (byte b) => new Card8(b);
    }
}
